package com.creed.business.controller;

import com.creed.business.service.ITestService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author btmood
 * @version 1.0
 * @apiNote
 * @since 2023-11-13 22:19
 */
@RestController
@RequestMapping("/test")
@CrossOrigin
@Slf4j
@AllArgsConstructor
public class TestController {

    private final ITestService testService;


    @PostMapping("test01")
    public String test01() {
        log.info("[测试01] 测试ok！");
        testService.insertOne();
        return "success test";
    }
}
